class UerInfoZt {
    constructor(uid) {
        this.uid = uid; //房间里玩家id
        this.totalTime = 0; //房间里改玩家当前轮消耗的总时间
        this.totalScore = 0; //房间里改玩家当前轮得到的总分数
        this.isWin = 0; //当前用户输赢状态 0是输了 1是赢了
        this.sessicon = null; //当前的客户端
    }

    setClient(client){
        this.sessicon = client;
    }

    getClient(){
        return this.sessicon;
    }

    setTotalScore(score){
        this.totalScore += score;
    }
    setTotalTime(time){
        this.totalTime += time;
    }
}
module.exports = UerInfoZt;